#!/bin/sh

exec >&3

if [ -z "$VDPAU_DRIVER" ]; then
	echo "VDPAU_DRIVER is not set"
else
	echo "VDPAU_DRIVER is set to '$VDPAU_DRIVER'"
fi
if [ -z "$VDPAU_DRIVER_PATH" ]; then
	echo "VDPAU_DRIVER_PATH is not set"
else
	echo "VDPAU_DRIVER_PATH is set to '$VDPAU_DRIVER_PATH'"
fi
echo

if [ -x /usr/bin/vdpauinfo ]; then
	echo "vdpauinfo:"
	/usr/bin/vdpauinfo 2>&1
else
	echo "vdpauinfo is not installed"
fi
echo

echo "available drivers:"
ls -la /usr/lib*/vdpau/libvdpau_* /usr/lib/*/vdpau/libvdpau_* "$VDPAU_DRIVER_PATH"/libvdpau_* 2>/dev/null

exit 0
